import { http } from '@/utils'
export const getUserInfo = () => {
  return async (dispatch) => {
    const res = await http.get('/user/profile')
    console.log(res.data.data)
    dispatch({ type: 'login/getInfo', payload: res.data.data })
  }
}
